/** Created by CUIJA on 05-19-2017.*/

infoService.$inject = ['$http'];
var urlBase = '/api';

function infoService($http) {

    return {
        update: function (formdata) {

            return $http.post(urlBase + "/merchant/update", formdata, {
                transformRequest: angular.identity,
                headers: {"Content-Type": undefined}
            });

        },
        sendToAdmin: function (user) {

            $http({
                method:'post',
                url:'http://10.222.29.179:3000/NJ_DOM_AEAT/outer/api/verify/add',
                data:user
            }).then(function successCallback(response) {
                console.log('send to A side success')
            }, function errorCallback(response) {
                console.log('fail')
            });
        }


    }

}

module.exports = infoService;






